import java.util.Date;

/**
 * Class to manage personal data info.
 * @author marcotezzele
 *
 */

public class PersonalData {
	private Date born;
	private String name;
	private String surname;
	private String sex;
	private String mail;
	private Status status;
	private int id; // identification number
	
	public PersonalData() {
		this.born = null;
		this.name = null;
		this.surname = null;
		this.sex = null;
		this.mail = null;
		this.status = null;
		this.id = -1;
	}
	
	public enum Status {
		DRIVER, PASSENGER, BOTH;
	}

	public Date getBorn() {
		return this.born;
	}

	public void setBorn(Date born) {
		this.born = born;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSurname() {
		return this.surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getMail() {
		return this.mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public Status getStatus() {
		return this.status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}
	
	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}
}
